<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>商品同步</title>
    <link rel="stylesheet" type="text/css" href="/Public/dataapi/css/css.css" />
    <script type="text/javascript" src="/Public/dataapi/js/jquery.min.js"></script>
    <!-- <script type="text/javascript" src="/Public/dataapi/js/page.js" ></script> -->
</head>

<body>
<div id="pageAll">
    <div class="pageTop">
        <div class="page">
            <img src="/Public/dataapi/img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
                href="#">同步管理</a>&nbsp;-</span>&nbsp;日志查看
        </div>
    </div>
    <div class="page">
        <hr/>
        <div class="banShow">
            <table border="1" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="66px" class="tdColor tdC">序号</td>
                    <td width="100px" class="tdColor">商品id</td>
                    <td width="308px" class="tdColor">商品名称</td>
                    <td width="400px" class="tdColor">日志内容</td>
                    <td width="300px" class="tdColor">时间</td>
                </tr>
                <?php if(is_array($list)): foreach($list as $key=>$logs): ?><tr>

                    <td><?php echo ++$i;?></td>
                    <td><?php echo ($logs["goodid"]); ?></td>
                    <td><?php echo ($logs["goodname"]); ?></td>
                    <td><?php echo ($logs["value"]); ?></td>
                    <td><?php echo ($logs["createdtime"]); ?></td>

                </tr><?php endforeach; endif; ?>
            </table>
            <tr class="content">
                <!--<td colspan="3" bgcolor="#FFFFFF">&nbsp;<?php echo ($page); ?></td>-->
                <td colspan="3" bgcolor="#FFFFFF"><div class="pages">
                    <?php echo ($page); ?>
                </div></td>
            </tr>
        </div>
        <!-- banner 表格 显示 end-->
    </div>
    <!-- banner页面样式end -->
</div>

</div>


<!-- 删除弹出框 -->
<div class="banDel">
    <div class="delete">
        <div class="close">
            <a><img src="/Public/dataapi/img/shanchu.png" /></a>
        </div>
        <p class="delP1">你确定要删除此条记录吗？</p>
        <p class="delP2">
            <a href="#" class="ok yes" onclick="del()">确定</a><a class="ok no">取消</a>
        </p>
    </div>
</div>
<!-- 删除弹出框  end-->
</body>

<script type="text/javascript">
    // 广告弹出框
    $(".delban").click(function(){
        $(".banDel").show();
    });
    $(".close").click(function(){
        $(".banDel").hide();
    });
    $(".no").click(function(){
        $(".banDel").hide();
    });
    // 广告弹出框 end

    function del(){
        var input=document.getElementsByName("check[]");
        for(var i=input.length-1; i>=0;i--){
            if(input[i].checked==true){
                //获取td节点
                var td=input[i].parentNode;
                //获取tr节点
                var tr=td.parentNode;
                //获取table
                var table=tr.parentNode;
                //移除子节点
                table.removeChild(tr);
            }
        }
    }
</script>
</html>